﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MAT
{

    public partial class frmNotice : Form
    {
        Controllers.ctrNotice _ctrNotice = new Controllers.ctrNotice();
        public frmNotice()
        {
            InitializeComponent();
            _ctrNotice.FrmNotice = this;
        }

        //Disable Close button in window form
        protected override CreateParams CreateParams
        {
            get
            {
                CreateParams param = base.CreateParams;
                param.ClassStyle = param.ClassStyle | 0x200;
                return param;
            }
        }

        //Action for Show Notice function
        private void showNoticeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            _ctrNotice.showNoticeToolStripMenuItem_Click();
        }

        //Action for Show Main Form function
        private void matCentralMainForm_Click(object sender, EventArgs e)
        {
            _ctrNotice.matCentralMainForm_Click();
        }

        //Action for Show About Message function
        private void aboutJupiter_Click(object sender, EventArgs e)
        {
            _ctrNotice.aboutJupiter_Click();
        }

        private void signOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            _ctrNotice.signOutToolStripMenuItem_Click();
        }

        //Action for Exit function
        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            _ctrNotice.exitToolStripMenuItem_Click();
        }

        public void frmNotice_Load(object sender, EventArgs e)
        {
            _ctrNotice.frmNotice_Load();
        }

        //Action when user choose one of objects in the listBox
        private void listBoxRequest_SelectedIndexChanged(object sender, EventArgs e)
        {
            _ctrNotice.listBoxRequest_SelectedIndexChanged();
        }

        //Action when user click on one of rows in the datagridview
        private void dataGridViewRequest_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            _ctrNotice.dataGridViewRequest_CellClick();
        }

        private void btnReload_Click(object sender, EventArgs e)
        {
            _ctrNotice.btnReload_Click();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            _ctrNotice.btnOK_Click();
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            _ctrNotice.btnClose_Click();
        }

        private void timerLoad_Tick(object sender, EventArgs e)
        {
            _ctrNotice.timerLoad_Tick();
        }

        private void MAT_NotifyIcon_BalloonTipClicked(object sender, EventArgs e)
        {
            _ctrNotice.MAT_NotifyIcon_BalloonTipClicked();
        }

        private void MAT_NotifyIcon_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            _ctrNotice.MAT_NotifyIcon_MouseDoubleClick();
        }

    }
}
